//
// Copyright (C) 2024 Kumo group inc.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

#pragma once

#include <turbo/flags/flag.h>
#include <turbo/flags/declare.h>
#include <turbo/flags/app.h>

TURBO_DECLARE_FLAG(bool, show_kthread_creation_in_vars);

TURBO_DECLARE_FLAG(bool, show_per_worker_usage_in_vars);


TURBO_DECLARE_FLAG(int32_t, kthread_concurrency);

TURBO_DECLARE_FLAG(int32_t, kthread_min_concurrency);

TURBO_DECLARE_FLAG(int32_t, kthread_current_tag);

TURBO_DECLARE_FLAG(int32_t, kthread_concurrency_by_tag);

TURBO_DECLARE_FLAG(int32_t, stack_size_small);
TURBO_DECLARE_FLAG(int32_t, stack_size_normal);
TURBO_DECLARE_FLAG(int32_t, stack_size_large);
TURBO_DECLARE_FLAG(int32_t, guard_page_size);
TURBO_DECLARE_FLAG(int32_t, tc_stack_small);
TURBO_DECLARE_FLAG(int32_t, tc_stack_normal);

TURBO_DECLARE_FLAG(int32_t, task_group_delete_delay);
TURBO_DECLARE_FLAG(int32_t, task_group_runqueue_capacity);
TURBO_DECLARE_FLAG(int32_t, task_group_yield_before_idle);
TURBO_DECLARE_FLAG(int32_t, task_group_ntags);

namespace kthread {

    void setup_kthread_options(turbo::cli::App*);
}  // namespace kthread